<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="80px">用户角色分类</td>
		<td class="queryContent">
			<select id="queryTypeL" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
			</select>
		</td>
		<td class="queryTitle" width="68px">角色分类</td>
		<td class="queryContent">
			<select id="queryTypeM" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
			</select>
		</td>
		<td class="queryTitle" width="80px">角色详情描述</td>
		<td class="queryContent">
			<input class="inputText" type="text" style="width:120px" id="queryItemDesc" />
		</td>
		<td class="queryTitle" height="20px">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery(1)">查询</a>
		</td>
	</tr>
	<tr>
	</tr>
</table>

<table id="roleGrid"></table>


<div id="powerDlg" class="easyui-window" title="" closed="true" style="width:650px;height:550px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="rolePower"  method="POST">
			<div>
				<div style="text-align:center; float: left;">
					<a class="easyui-linkbutton" style="background-color: #F5F5DC;" iconCls="icon-ok" href="javascript:void(0)" plain="true" onclick="updPp()">确认授权</a>
				</div>
				<div style="text-align: center;">
					<span style="font-size:12px;background-color: #F5F5DC;">功能分类:</span>
					<select id="funType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px"></select> 
					<a class="easyui-linkbutton" style="background-color: #F5F5DC;" iconCls="icon-search" href="javascript:void(0)" plain="true" onclick="doQueryFun()">查询</a>
				</div>
			</div>
			<s:hidden name="roleId" id="roleId"/>
			<table id="powerGrid" ></table>
		</form>
	</div>
</div>

<div id="editDlg" class="easyui-window" title="" closed="true" style="width:800px; height:300px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="editForm"  method="POST">
			<s:hidden name="editRoleId" id="editRoleId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="editTable">
				<tr>
					<td class="queryTitle" width="80px"><span style="color:red">用户角色分类</span></td>
					<td class="queryContent">
						<select id="editTypeL" name="editTypeL" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
						</select>
					</td>
					<td class="queryTitle" width="80px">角色分类</td>
					<td class="queryContent">
						<select id="editTypeM" name="editTypeM" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
						</select>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="40px">角色名称</td>
					<td class="queryContent" colspan="5">
						<textarea id="editName" name="editName" rows="4" cols="55" class="inputText easyui-validatebox" style="width:100%;resize:none;" data-options="required:true,validType:['maxLength[200]']"></textarea>
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="80px">角色描述</td>
					<td class="queryContent" colspan="5">
						<textarea id="editDesc" name="editDesc" rows="4" cols="55" class="inputText easyui-validatebox" style="width:100%;resize:none;" data-options="required:true,validType:['maxLength[200]']"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="editBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doEdit()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelEdit()">取消</a>
    </div>
</div>

<script type="text/javascript" src="${ctx}/js/tg/uploadcom.js"></script>
<script type="text/javascript" src="${ctx}/js/tg/ajaxupload.js"></script>
<script type="text/javascript" src="${ctx}/js/authority/roleInfo.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
